package com.xingkong.product.domain;


import com.baomidou.mybatisplus.annotation.TableField;
import com.xingkong.common.annotation.Excel;
import com.xingkong.common.core.domain.BaseEntity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.experimental.Accessors;

/**
 * 商品分类表 prdt_category
 *
 * @author yiyue
 * @date 2020-03-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("prdt_category")
@Getter
@Setter
@ToString
public class Category extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * null
     */
    @TableId("id")
    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String categoryName;

    /**
     * 商家编号
     */
    @Excel(name = "商家编号")
    private Long merchantId;

    /**
     * 是否显示
     */
    @Excel(name = "是否显示")
    private Integer display;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer categorySort;

    /**
     * 展示图标
     */
    @Excel(name = "展示图标")
    private String iconUrl;

    /**
     * 层级
     */
    @Excel(name = "层级")
    private Integer categoryLevel;

    /**
     * 节点路径
     */
    @Excel(name = "节点路径")
    private String nodePath;
    private Long parentId;

    @TableField(exist = false)
    private  String parentName;

}